home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan 2
/
Opus 5 - Magellan 2.iso
/
Extras
/
version13
/
Version.dopus5
< prev
next >
Wrap
Text File
|
1997-05-21
|
2KB
|
61 lines
/*
$VER: Version.dopus5 1.3 (21.5.97)
Written by Steve Banham <sbanham@nor.com.au>
A new version info display module for DOpus v5.5
USAGE: - Copy version.dopus5 to DOpus5:modules/
- A new version command is available from
pop-up command lists in all editors.
- Assign the version command to either a
button or menu and when the function is
called the version string for all selected
files in the source lister will be shown.
*/
parse arg portname function source dest arguments
address value portname
options results
lf='0a'x
if function = 'init' then do
dopus command "Version" program "Version" desc "'Display version strings'" 'source'
exit
end
if function = 'Version' then do
lister query source path
path = strip(result, 'B', '"')
call pragma('d',path)
lister query source selfiles stem files.
if files.count = 0|files.count = ''| files.count = 'FILES.COUNT' then call ERROR "No files selected"
i = 0
do while i < files.count
lister select source files.i off
lister refresh source full
if ~open('FILE',files.i,'R')then call ERROR 'Cannot open "'files.i'"'
else
do
call close 'FILE'
address command 'version >T:version.tmp 'files.i' FILE FULL'
call open('temp','T:version.tmp','r')
text = "("||files.i||" )"||lf||READLN('temp')
call close('temp')
lister request source '"'||text||'" Continue'
end
i = i + 1
end
exit
ERROR:
parse arg error
lister request source "'"error"'" "OK"
exit